deltas: Add _V0 to part #define
authorColin Walters <walters@verbum.org>
Wed, 28 Jan 2015 22:42:59 +0000 (17:42 -0500)
committerColin Walters <walters@verbum.org>
Mon, 16 Feb 2015 15:10:35 +0000 (10:10 -0500)
To make more explicitly clear that this is the version that matches
the version in the metadata.

src/libostree/ostree-repo-static-delta-private.h
src/libostree/ostree-repo-static-delta-processing.c

index 6377f5330c743a9e62e914f6cf238cf6dd280ad5..4c0f8c140032b9e0a758ea7ada9f0e4ff78f8850 100644 (file)
@@ -30,14 +30,14 @@ G_BEGIN_DECLS
 #define OSTREE_STATIC_DELTA_OBJTYPE_CSUM_LEN 33
 
 /**
- * OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT:
+ * OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT_V0:
  *
  *   y  compression type (0: none, 'x': lzma)
  *   ---
  *   ay data source
  *   ay operations
  */
-#define OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT "(ayay)"
+#define OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT_V0 "(ayay)"
 
 /**
  * OSTREE_STATIC_DELTA_META_ENTRY_FORMAT:
index 03b37359f90bc92515285231e90b6cf4636b4289..e7a445cf02646412494cac5ffd775e2c685cc114 100644 (file)
@@ -334,7 +334,7 @@ _ostree_static_delta_part_execute (OstreeRepo      *repo,
       goto out;
     }
         
-  payload = ot_variant_new_from_bytes (G_VARIANT_TYPE (OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT),
+  payload = ot_variant_new_from_bytes (G_VARIANT_TYPE (OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT_V0),
                                        payload_data, FALSE);
   if (!_ostree_static_delta_part_execute_raw (repo, header, payload,
                                               cancellable, error))